<?php
/* @var $this SaleController */
/* @var $model Sale */
/* @var $form CActiveForm */
?>

<div class="search">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
	<?php echo '开始时间'; ?>	
	<?php  
            $this->widget('zii.widgets.jui.CJuiDatePicker', array(  
                'model'=>$model,  
                'attribute'=>'add_time', 
                'language'=>'zh_cn',  
                'options' => array(  
                'dateFormat'=>'yy-mm-dd', //database save format  
                    //'altFormat'=>'mm-dd-yy' //display format  
                    //'showAnim'=>'fold',  
                    //'yearRange'=>'-3:+3'   
                ),  
                'htmlOptions'=>array(  
                    'readonly'=>'readonly',  
                    'style'=>'width:150px;',  
                )  
            ));?>  
            <?php echo $form->error($model,'add_time'); ?>
        
        
        <?php echo '结束时间'; ?>	
	<?php  
            $this->widget('zii.widgets.jui.CJuiDatePicker', array(  
                'model'=>$model,  
                'attribute'=>'update_time', 
                'language'=>'zh_cn',  
                'options' => array(  
                'dateFormat'=>'yy-mm-dd', //database save format  
                    //'altFormat'=>'mm-dd-yy' //display format  
                    //'showAnim'=>'fold',  
                    //'yearRange'=>'-3:+3'   
                ),  
                'htmlOptions'=>array(  
                    'readonly'=>'readonly',  
                    'style'=>'width:150px;',  
                )  
            ));?>  
            <?php echo $form->error($model,'update_time'); ?>

	<?php echo CHtml::submitButton('查 询',array('class'=>'but')); ?>

<?php $this->endWidget(); ?>

</div><!-- search-form  -->